﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="addUserProject.aspx.cs" Inherits="Sfd.WebApp.Security.addUserProject" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<style type="text/css">
    .clmNom
    {
        width: 100px;
    }
</style>
<h2>Ajout d'un utilisateur au projet</h2>
    <table>
    <tr>
    <td class="clmNom">Utilisateur</td>
    <td><asp:DropDownList ID="cbUsers" runat="server" DataTextField="UserName" 
            DataValueField="ProviderUserKey" AutoPostBack="True" 
            onselectedindexchanged="cbUsers_SelectedIndexChanged"/></td>
    </tr>
    
    <tr>
    <td valign="top">Projets</td>
    <td>
        <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ProjectId" GridLines="None" ShowHeader="False">
            <Columns>
                <asp:TemplateField >
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("IsSelected") %>' 
                            Enabled="true" oncheckedchanged="CheckBox1_CheckedChanged" AutoPostBack="True" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="lblProjectName" runat="server" Text='<%# Bind("FriendlyName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        </td></tr>
    </table>
    
    <p>
        <asp:Label ID="lblInfos" runat="server" />
    </p>
</asp:Content>
